package com.yjd.comm.user.enums;


/**
 * <b>description</b>：客户端通道类型 <br>
 * <b>time</b>：2015-1-20上午11:08:28 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public enum ClientChannelEnum {
	PIC(0, "网页"), MOBILE(1, "移动端");
	private ClientChannelEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	private Integer value;
	private String description;

	public Integer getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static ClientChannelEnum get(Integer value) {
		ClientChannelEnum[] es = ClientChannelEnum.values();
		for (ClientChannelEnum e : es) {
			if (e.getValue().equals(value)) {
				return e;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		ClientChannelEnum[] es = ClientChannelEnum.values();
		for (ClientChannelEnum e : es) {
			if (e.getValue().equals(value)) {
				return e.getDescription();
			}
		}
		return null;
	}
}
